<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选项卡特效</title>
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>
    <div class="tab-container">
        <!-- 选项卡导航 -->
        <div class="tab-nav">
            <button class="tab-button active" onclick="openTab(event, 'tab1')">视频</button>
            <button class="tab-button" onclick="openTab(event, 'tab2')">游戏</button>
            <button class="tab-button" onclick="openTab(event, 'tab3')">直播</button>
            <button class="tab-button" onclick="openTab(event, 'tab4')">体育</button>
            <button class="tab-button" onclick="openTab(event, 'tab5')">汽车</button>
        </div>
        <!-- 选项卡内容 -->
        <div class="tab-content">
            <div id="tab1" class="tab-pane active">
                <p>
                    <img src="./img/1.png" alt="">
                </p>
            </div>
            <div id="tab2" class="tab-pane">
                <p>
                    <img src="./img/2.png" alt="">
                </p>
            </div>
            <div id="tab3" class="tab-pane">
                <p>
                    <img src="./img/3.png" alt="">
                </p>
            </div>
            <div id="tab4" class="tab-pane">
                <p>
                    <img src="./img/4.png" alt="">
                </p>
            </div>
            <div id="tab5" class="tab-pane">
                <p>
                    <img src="./img/5.png" alt="">
                </p>
            </div>
        </div>
    </div>
    <script src="js/script.js"></script>
</body>
</html>